package com.example.sys.org.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.core.po.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "角色信息")
@TableName(value = "sys_role")
public class SysRole extends BasePo<SysRole> {

    @ApiModelProperty(value = "角色编号")
    @TableField(value = "code")
    private String code;

    @ApiModelProperty(value = "是否有效")
    @TableField(value = "enabled")
    private boolean enabled;

    @ApiModelProperty(value = "是否默认")
    @TableField(value = "opened")
    private boolean opened;

    @ApiModelProperty(value = "角色描述")
    @TableField(value = "context")
    private String context;
}
